import socket
s = socket.socket(.AF_INET,socket.SOCK_STREAM)
s.bind(('127.0.0.1',8001))
s.listen()
conn,address = s.accept()
data = conn.recv(1024)
print(data.decode())
conn.sendall(("服务器已经接收到了数据内容："+str(data.decode())).encode())
s.close()